#ifndef __sliptree__Collision__
#define __sliptree__Collision__

#include <cocos2d.h>
#include "Monkey.h"
#include "Branch.h"
using namespace cocos2d;

class Collision: public CCComponent
{
public:
	Collision(Monkey* monkey); 

	int isCollision();

private:
	Branch * mParent;
	Monkey * mMonkey;

	virtual void update(float delta); //kiem tra va cham va tinh diem
    
    CCPoint getWorldPosition(); //tinh pos cua pipe tren man hinh.. (vi pipe hien dang tren layerMoveLeft)
	CCSize mSizeScreen;
};


#endif /* defined(__sliptree__Collision__) */